import Taro , { Component } from '@tarojs/taro';
import { View, Text , Button} from '@tarojs/components';
import InfoFunction from '../../components/info-function/index.js';
import NavigationBar from '../../components/navigationBar/index';
export default class Index extends Component {

   config = {
       navigationBarTitleText: ''
  }

  state = {
    refreshFlag: false,
    navigationBarHeight: Taro.getStorageSync('navigationBarHeight'),
  }

  componentWillMount () {}
  componentDidMount () {}
  componentWillReceiveProps (nextProps,nextContext) {}
  componentWillUnmount () {}
  componentDidShow () {
    this.setState({
      refreshFlag: false,
    }, () => {
      this.setState({
        refreshFlag: true
      })
    })
  }
  componentDidHide () {}
  componentDidCatchError () {}
  componentDidNotFound () {}
  render() {
    return (
      <View style={`margin-top: ${navigationBarHeight}`}>
        <NavigationBar text="我的" />
        {refreshFlag && <InfoFunction />}
      </View>
    );
  }
}
